process method of cost compute

n.成本计算的分布法